c858a6919b681cd04a4f18856c70ab6bf10c0af2,bigbluebutton-apps/src/main/java/org/bigbluebutton/webconference/voice/freeswitch/FreeswitchApplication.java,FreeswitchApplication,mute,#String#number#Boolean#,115

Before Change


    @Override
    public void mute(String room, Integer participant, Boolean mute) {
        MuteParticipantCommand mpc = new MuteParticipantCommand(room, participant, mute, USER);
        String jobId = manager.getESLClient().sendAsyncApiCommand( mpc.getCommand(), mpc.getCommandArgs());
        log.debug("mute called for room [{}] jobid [{}]", room, jobId);
    }

After Change



    @Override
    public void mute(String room, Integer participant, Boolean mute) {
    	Client c = manager.getESLClient();
        if (c.canSend()) {
            MuteParticipantCommand mpc = new MuteParticipantCommand(room, participant, mute, USER);
            String jobId = c.sendAsyncApiCommand( mpc.getCommand(), mpc.getCommandArgs());
            log.debug("mute called for room [{}] jobid [{}]", room, jobId);        	
        }else {
        	log.warn("Can't send mute request to FreeSWITCH as we are not connected.");
        	// Let's see if we can recover the connection.
        	startHeartbeatMonitor();
        }

    }